package com.vcit.system.domain.grade;

import com.vcit.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 班级-学期-课程三元关系实体
 */
public class TClazzTermCourse extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 班级ID */
    private Long clazzId;
    /** 学期ID */
    private Long termId;
    /** 课程ID */
    private Long courseId;
    /** 排序 */
    private Integer sorted;
    /** 学期名称，仅用于展示 */
    private String termName;
    /** 班级名称，仅用于展示 */
    private String clazzName;
    /** 课程名称，仅用于展示 */
    private String courseName;

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public Long getClazzId() { return clazzId; }
    public void setClazzId(Long clazzId) { this.clazzId = clazzId; }
    public Long getTermId() { return termId; }
    public void setTermId(Long termId) { this.termId = termId; }
    public Long getCourseId() { return courseId; }
    public void setCourseId(Long courseId) { this.courseId = courseId; }
    public Integer getSorted() { return sorted; }
    public void setSorted(Integer sorted) { this.sorted = sorted; }
    public String getTermName() { return termName; }
    public void setTermName(String termName) { this.termName = termName; }
    public String getClazzName() { return clazzName; }
    public void setClazzName(String clazzName) { this.clazzName = clazzName; }
    public String getCourseName() { return courseName; }
    public void setCourseName(String courseName) { this.courseName = courseName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("clazzId", getClazzId())
                .append("termId", getTermId())
                .append("courseId", getCourseId())
                .append("sorted", getSorted())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
} 